package spring.cloud.tasks.tasks_assign_manager.database.service.impl;

import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import spring.cloud.tasks.tasks_assign_manager.database.repository.TaskConfigurationDtoRepository;
import spring.cloud.tasks.tasks_assign_manager.database.service.TaskConfigurationDtoService;

import java.util.List;

@Service
public class TaskConfigurationDtoServiceImpl implements TaskConfigurationDtoService {


    @Autowired
    private TaskConfigurationDtoRepository taskConfigurationDtoRepository;

    @Autowired
    private SqlSessionFactory sqlSessionFactory;

    @Override
    public List<String> getTaskIdListBynameSpace(String nameSpace) throws RuntimeException {
        return taskConfigurationDtoRepository.findConfigNamesBynameSpace(nameSpace);
    }

}
